str = input("请输入密文：")
strLen = len(str)
lst = []
for i in range(strLen):
    lst.append('')

offset = 3
for j in range(strLen):
    index = (j+offset)%strLen
    lst[index] = str[j]
print(str)
print(''.join(lst))
